|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lessvoid.nifty.screen.DefaultScreenController
furny.states.InitializerUIController
public class InitializerUIController
This is a controller that allows communication with the nifty gui.
Field Summary | |
---|---|
private IInteractiveFitnessEvaluator<FurnLayoutIndividual> |
evaluator
|
private java.util.List<java.lang.String> |
floorTextures
|
private MenuListener |
menuListener
|
private InitializerPreState |
state
|
private com.jme3.math.ColorRGBA |
wallColor
|
Constructor Summary | |
---|---|
InitializerUIController(IInteractiveFitnessEvaluator<FurnLayoutIndividual> evaluator,
InitializerPreState state)
Instantiates a new initializer ui controller. |
Method Summary | |
---|---|
private void |
addTexture(java.lang.String file)
Adds a texture. |
de.lessvoid.nifty.tools.Color |
getColor()
Gets the wall color. |
java.lang.String |
getColorString()
Gets the wall color as string. |
java.lang.String |
getImageFile(int i)
Gets the image file at index i. |
FurnLayoutIndividual |
getIndividual()
Gets the individual. |
java.lang.String |
getPopPercentageString()
Gets the pop percentage string. |
java.lang.String |
getRoomSizeString()
Gets the room size as string. |
void |
onFloorTextureChange(java.lang.String num)
Callback method. |
void |
onLightingChange(java.lang.String lightingType)
Callback method. |
void |
onLoadIndividual()
Callback method. |
void |
onPopPercentageChange()
Callback method. |
void |
onResetIndividual()
Callback method. |
void |
onRoomSizeChange()
Callback method. |
void |
onTerminate()
Callback method. |
void |
onWallColorChange(java.lang.String colorString)
Callback method. |
void |
onWallColorSelect()
Callback method. |
void |
setMenuListener(MenuListener menuListener)
Sets the menu listener. |
void |
setWallColor(com.jme3.math.ColorRGBA wallColor)
Sets the wall color. |
Methods inherited from class de.lessvoid.nifty.screen.DefaultScreenController |
---|
bind, gotoScreen, onEndScreen, onStartScreen |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final IInteractiveFitnessEvaluator<FurnLayoutIndividual> evaluator
private final InitializerPreState state
private final java.util.List<java.lang.String> floorTextures
private MenuListener menuListener
private com.jme3.math.ColorRGBA wallColor
Constructor Detail |
---|
public InitializerUIController(IInteractiveFitnessEvaluator<FurnLayoutIndividual> evaluator, InitializerPreState state)
evaluator
- the evaluatorstate
- the stateMethod Detail |
---|
private void addTexture(java.lang.String file)
file
- the filenamepublic void setWallColor(com.jme3.math.ColorRGBA wallColor)
wallColor
- the new wall colorpublic void onTerminate()
public void setMenuListener(MenuListener menuListener)
IMenuListenerParent
setMenuListener
in interface IMenuListenerParent
menuListener
- the new menu listenerpublic void onFloorTextureChange(java.lang.String num)
public java.lang.String getRoomSizeString()
public void onPopPercentageChange()
public void onRoomSizeChange()
public java.lang.String getPopPercentageString()
public void onWallColorChange(java.lang.String colorString)
colorString
- The new color as string.public void onLoadIndividual()
public FurnLayoutIndividual getIndividual()
public void onResetIndividual()
public void onLightingChange(java.lang.String lightingType)
lightingType
- The new type of lighting.public void onWallColorSelect()
public java.lang.String getColorString()
public de.lessvoid.nifty.tools.Color getColor()
public java.lang.String getImageFile(int i)
i
- the index of the image file.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |